<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>肖家河城管商品系统</title>
    <link rel="stylesheet" href="./libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./css/index.css">
    <script src="./libs/jQuery-3.4.1.min.js"></script>
    <script src="./libs/bootstrap/js/bootstrap.min.js"></script>
    <script src="./js/utils.js"></script>
  </head>
<body>
  <nav class="navbar navbar-default navbar-inverse">
    <div class="container">
      <!-- Brand and toggle get grouped for better mobile display -->
      <div class="navbar-header ">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">肖家河城管商品系统</a>
      </div>
  
      <!-- Collect the nav links, forms, and other content for toggling -->
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
          <li class="active"><a href="#">首页</a></li>
          <li><a href="#">其他页面</a></li>
        </ul>
       
        <ul class="nav navbar-nav navbar-right" id="navbarright">
          <!-- <li><a href="#">登录</a></li> -->
          <li><a href="#"></a></li>
          <li><a href="#">退出</a></li>
          <button class="btn btn-primary btn-sm " data-toggle="modal" data-target="#user-ok">登录</button>
          <!-- <li><a href="#">注册</a></li> -->
          <button class="btn btn-primary btn-sm " data-toggle="modal" data-target="#user-user">注册</button>
        </ul>
      </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
  </nav>
  <div class="container">
    <button class="btn btn-primary add-shop " data-toggle="modal" data-target="#addModal">添加商品</button>
    <table class="table table-striped shop-table table-bordered table-hover">
      <thead>
        <tr>
          <th>编号</th>
          <th>商品名称</th>
          <th>商品价格</th>
          <th>商品数量</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody id='shop-tbody' class="shop-tbody">
        <!-- <tr>
          <td>1</td>
          <td><span>垃圾</span><input type="text"></td>
          <td><span>垃圾</span><input type="text"></td>
          <td><span>垃圾</span><input type="text"></td>
          <td>
            <button class="btn btn-xs btn-primary btn-edit">编辑</button>
            <button class="btn btn-xs btn-danger btn-del">删除</button>
            <button class="btn btn-xs btn-info btn-ok">确定</button>
            <button class="btn btn-xs btn-warning btn-cancel">取消</button>
          </td>
        </tr> -->
        
      </tbody>
    </table>
  </div>
  <!-- Modal -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">录入商品</h4>
      </div>
      <div class="modal-body">
        <form class="form-horizontal">
          <div class="form-group">
            <label for="inputName" class="col-sm-2 control-label">商品名称</label>
            <div class="col-sm-10">
              <input type="email" class="form-control" id="inputName" placeholder="请输入商品名称">
            </div>
          </div>
          <div class="form-group">
            <label for="inputPrice" class="col-sm-2 control-label">商品价格</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" id="inputPrice" placeholder="请输入商品价格">
            </div>
          </div>
          <div class="form-group">
            <label for="inputNum" class="col-sm-2 control-label">商品数量</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" id="inputNum" placeholder="请输入商品数量">
            </div>
          </div>
        </form>
        <p id="msgWrap" class="text-center"></p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" id="btn-add">添加</button>
      </div>
    </div>
  </div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="user-user">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">注册列表</h4>
      </div>
      <div class="modal-body">
        <form class="form-horizontal">
          <div class="form-group">
            <label for="inputName" class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-10">
              <input type="email" class="form-control" id="inputuserName" placeholder="请输入用户名">
            </div>
          </div>
          <div class="form-group">
            <label for="inputPrice" class="col-sm-2 control-label">密码</label>
            <div class="col-sm-10">
              <input type="password" class="form-control" id="inputpwd" placeholder="请输入密码">
            </div>
          </div>
        </form>
        <p id="msguser" class="text-center"></p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" id="iduserzc">注册</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal fade" tabindex="-1" role="dialog" id="user-ok">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">登录列表</h4>
      </div>
      <div class="modal-body">
        <form class="form-horizontal">
          <div class="form-group">
            <label for="inputName" class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-10">
              <input type="email" class="form-control" id="inputuserokName" placeholder="请输入用户名">
            </div>
          </div>
          <div class="form-group">
            <label for="inputPrice" class="col-sm-2 control-label">密码</label>
            <div class="col-sm-10">
              <input type="password" class="form-control" id="inputokpwd" placeholder="请输入密码">
            </div>
          </div>
        </form>
        <p id="msguserok" class="text-center"></p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" id="iduserdl">登录</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script src="./js/select.js"></script>
<script src="./js/add.js"></script>
<script src="./js/edit.js"></script>
<script src="./js/user-user.js"></script>
<script src="./js/user-ok.js"></script>
</body>
</html>